package com.fangcang;

import org.junit.Test;

public class TryFinallyReturn {

	@Test
	public void test() {
		System.out.println(getStr());
	}
	
	public String getStr() {
		try {
			Str str = new Str();
			return str.get().toString(); 
		}catch(Exception e) {
			System.out.println("Exception");
		}finally {
			System.out.println("finally");
		}
		return "";
	}
	
	public static class Str{
		
		public String get() {
			return null;
		}
	}

}
